/**
 * Created by Administrator on 2017/6/12.
 */
angular
    .module('appRoutes', [])
    .config(function ($routeProvider) {
        $routeProvider
            .when('/first', {templateUrl: 'templates/firstPage.html', controller: 'firstController'})
            .when('/second', {templateUrl: 'templates/secondPage.html', controller: 'SecondController'})
            .otherwise({
                redirectTo:'/first'
            });
    });